package com.ruoyi.project.menzhen.service.impl;

import com.ruoyi.project.menzhen.domain.Doctor;
import com.ruoyi.project.menzhen.mapper.MenzhenDoctorMapper;
import com.ruoyi.project.menzhen.service.DoctorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class DoctorServiceImpl implements DoctorService {
    @Autowired
    private MenzhenDoctorMapper menzhenDoctorMapper;
    @Override
    public List<Doctor> DoctorService(Doctor doctor) {
        return menzhenDoctorMapper.selectAllDoctor(doctor);
    }

    @Override
    public int UpdateDoctor(Doctor doctor) {
        return menzhenDoctorMapper.updateDoctor(doctor);
    }

    @Override
    public Doctor selectDoctorByIdService(Long pdId) {
        return menzhenDoctorMapper.selectDoctorById(pdId);
    }

}
